package com.njtoyo.taxi.admin.rest.wrapper.data.allowance;

import cn.hutool.core.date.DatePattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("补贴统计查询")
public class AllowanceWrapper {

    @ApiModelProperty("开始时间，格式：yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @NotNull(message = "开始时间必传")
    private Date startTime;

    @ApiModelProperty("结束时间，格式：yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @NotNull(message = "结束时间必传")
    private Date endTime;
}
